import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

# 加载环境变量
from dotenv import load_dotenv, find_dotenv,dotenv_values,get_key,set_key
_ = load_dotenv(find_dotenv())

def get_evn_key(key):
    return get_key(find_dotenv(), key_to_get=key)

def set_env_key(key, value):
    return set_key(find_dotenv(), key_to_set=key, value_to_set=value)


def get_all_evn():
    return dotenv_values()